#include <QApplication>
#include "A.h"
#include "B.h"
#include "C.h"

int main(int argc, char *argv[]) {
#ifdef demo1
    A a;
    B b;
    QObject::connect(&a, SIGNAL(mySignal()),
                     &b, SLOT(mySlot()));

    QObject::connect(&a, &A::mySignal,
                     &b, &B::mySlot);
    emit a.mySignal();

    qDebug() << "end";
#endif
    C c;
    emit c.mySignal(0);
//    emit c.mySignal(9, 1);
    return 0;
}
